package  entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * Account entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="account")
public class Account implements java.io.Serializable {

	// Fields

	private String rowid;
	private String account;
	private String code;
	private String name;
	private String phone;
	private String img;
	private String sex;
	private String roleId;
	// Constructors

	/** default constructor */
	public Account() {
	}

	/** minimal constructor */
	public Account(String rowid) {
		this.rowid = rowid;
	}

	/** full constructor */
	public Account(String rowid, String account, String code, String name,
			String phone, String img,String sex,String roleId) {
		this.rowid = rowid;
		this.account = account;
		this.code = code;
		this.name = name;
		this.phone = phone;
		this.img = img;
		this.sex=sex;
		this.roleId=roleId;
	}

	// Property accessors
@Id
@GeneratedValue(generator = "system-uuid")  
@GenericGenerator(name = "system-uuid", strategy = "uuid")
@Column(name="rowid")
	public String getRowid() {
		return this.rowid;
	}

	public void setRowid(String rowid) {
		this.rowid = rowid;
	}
@Column(name="account")
	public String getAccount() {
		return this.account;
	}

	public void setAccount(String account) {
		this.account = account;
	}
	@Column(name="code")
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	@Column(name="name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name="phone")
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	@Column(name="img")
	public String getImg() {
		return this.img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	@Column(name="sex")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	@Column(name="roleId")
	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

}